﻿
namespace SpringSeries.Core.ConstructorInjection
{
    public class PhraseTranslator
    {
        private ITranslator _concreteTranslator = null;

        public PhraseTranslator(ITranslator concreteTranslator)
        {
            _concreteTranslator = concreteTranslator;
        }

        public string Translate(string phraseToTranslate)
        {
            return _concreteTranslator.Translate(phraseToTranslate);
        }
    }
}
